

# -*- coding: utf-8 -*-

from odoo import models, fields, api


class HrDepartureWizard(models.TransientModel):
    _inherit = 'hr.departure.wizard'
    resign_date=fields.Date(string=u'离职日期')

    def action_register_departure(self):
        
        employee = self.employee_id
        employee.resign_date=self.resign_date
        return super(HrDepartureWizard, self).action_register_departure()
